package com.pojo;

public class Result {

    //状态吗   000000 成功  ；999999 失败
    private String code;
    //提示信息
    private String message;

    public Result() {
    }

    public static Result success(){
        Result result = new Result();
        result.setCode("000000");
        result.setMessage("操作成功！");
        return result;
    }

    public static Result error(){
        Result result = new Result();
        result.setCode("888888");
        result.setMessage("操作失败！");
        return result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
